import request from '@/utils/request'

// 查询机构信息列表
export function listOrganization(data) {
  return request({
    url: '/agent/organization/list',
    method: 'post',
    data: data
  })
}

// 查询机构信息详细
export function getOrganization(id) {
  return request({
    url: '/agent/organization/' + id,
    method: 'get'
  })
}

// 新增机构信息
export function addOrganization(data) {
  return request({
    url: '/agent/organization/add',
    method: 'post',
    data: data
  })
}

// 修改机构信息
export function updateOrganization(data) {
  return request({
    url: '/agent/organization/edit',
    method: 'post',
    data: data
  })
}

// 删除机构信息
export function delOrganization(id) {
  return request({
    url: '/agent/organization/remove/' + id,
    method: 'post'
  })
}
